package com.foreknow.demo12;

import com.foreknow.demo11.Dog;
import com.foreknow.demo11.Pet;

import java.util.ArrayList;
import java.util.List;

public class Test {

    public void m1(A a) {
        a.m5();
    }

    public A m2() {
        A a = new AImpl();
        return a;
    }

    public static void main(String[] args) {
        Test test = new Test();
        A a = new AImpl();
        test.m1(a);

        A aa = test.m2();
        aa.m4();
    }
}
